
<div class="box span12">

    <div class="box-content">
        <div id="DataTables_Table_0_wrapper" class="dataTables_wrapper" role="grid">


            <form id="form_action" method="post" class="form-horizontal"
                  action="<?php echo $this->url('admin/child', array('controller' => 'config', 'action' => 'index')) ?>">

                <!--end search  -->
                <div style="clear: both"></div>
                <fieldset>
                    <legend>Config System variable</legend>
                    <?php if($save): ?>
                        <div id="alert" class="alert alert-success">
                            <button type="button" class="close" data-dismiss="alert">×</button>
                            <strong>Save done!</strong> <span></span>
                        </div>
                    <?php endif ?>
                    <?php foreach ($config as $item): ?>
                        <?php
                         if($item->name == 'maintain'){ ?>
                             <div class="control-group">
                                 <label class="control-label" for=""><?=$item->title?></label>
                                 <div class="controls">
                                     <select name="<?=$item->name?>">
                                         <option <?php if($item->value =='on'){echo 'selected="selected"';} ?> value="on">On</option>
                                         <option <?php if($item->value =='off'){echo 'selected="selected"';} ?> value="off">Off</option>
                                     </select>
                                 </div>
                             </div>
                        <?php
                         }else{
                        ?>
                        <div class="control-group">
                            <label class="control-label" for=""><?=$item->title?></label>
                            <div class="controls">
                                <input type="text" name="<?=$item->name?>" value="<?=$item->value?>" class="input-xlarge focused span6 typeahead" id="<?=$item->name?>" />
                            </div>
                        </div>

                    <?php } endforeach ?>
                    <div class="control-group">
                        <label class="control-label" for=""></label>
                        <div class="controls">
                          <button class="btn btn-danger" type="submit">Save</button>
                        </div>
                    </div>
                </fieldset>
            </form>


        </div>
    </div>


